/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.behavioral.observer_pattern.Impl;

import com.kleintjes.behavioral.observer_pattern.WeatherObserver;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class WeatherCustomer2 implements WeatherObserver{
    
    int currentTemp;
    
    @Override
    public void doUpdate(int temperature) {
        System.out.println("Weather customer 2 just found out the temperature is: "+temperature);
        currentTemp = temperature;
    }

    public int getCurrentTemp() {
        return currentTemp;
    }
}
